home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself VRML 2 in 21 Days / Teach Yourself VRML 2 in 21 Days.iso / pc / source / chap16 / 16tyv02.wrl < prev    next >
Encoding:
Text File  |  1996-11-04  |  1.3 KB  |  50 lines

  1. #VRML Draft #2 V2.0 utf8 CosmoCreate3D V1.0
  2.  
  3. DEF overview Viewpoint {
  4.     position    0 0 6
  5.     fieldOfView    0.785398
  6.     description    "OVERVIEW"
  7. }
  8. LOD {
  9.   levels   [
  10.              Transform {
  11.                children 
  12.                  DEF SHAFT Inline {
  13.                    url ["newshaft.wrl"] 
  14.                    bboxSize 2 40 6
  15.                  }
  16.              }, 
  17.              Transform {
  18.                children 
  19.                  DEF SHAFT Inline {
  20.                    url ["shaftlow.wrl"] 
  21.                    bboxSize 2 40 6
  22.                  }
  23.              }, 
  24.              Transform {
  25.                children
  26.                   Shape {
  27.                     appearance Appearance {
  28.                        texture ImageTexture { url ["shaft.gif"] }
  29.                     }
  30.                     geometry IndexedFaceSet {
  31.                        coord Coordinate {
  32.                          point [
  33.                     -20 0 -80, 
  34.                     -20 40 -80, 
  35.                      20 40 -80, 
  36.                      20 0 -80
  37.                      ]
  38.                        }   
  39.                        coordIndex [
  40.                   2,1,0,-1,
  41.                   3,2,0,-1
  42.                        ]   
  43.                     }
  44.                   }             
  45.              }, 
  46.            ] 
  47.            center   0 0 0
  48.            range    [20,40] 
  49. }
  50.